package com.yanqu.road.entity.log.cross;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

/**
 * 商会成员变更（玩家更换商会日志）
 */
@FieldTypeAnnotation(tableName = "t_l_ck_union_member_change", desc = "商会成员变更", autoSave = true, uploadCk = true, isCross = true)
public class LogUnionMemberChange extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "玩家Id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "变更前商会")
    private String preUnionUid;
    @FieldTypeAnnotation(desc = "变更后商会")
    private String unionUid;

    public LogUnionMemberChange(long userId, String preUnionUid, String unionUid) {
        this.userId = userId;
        this.preUnionUid = preUnionUid;
        this.unionUid = unionUid;
    }

    public long getUserId() {
        return userId;
    }

}
